.live-grid-view {
    display: block;

    .live-list {
        display: flex;
        flex-wrap: wrap;

        &-item {
            flex: 0.5;
            min-width: 50%;
            max-width: 50%;
            width: 50%;

            .inner {
                padding: 5px;
                display: block;
                border-radius: 3px;
                overflow: hidden;

                .pic-box {
                    display: block;
                    padding-top: 80%;
                    position: relative;

                    img {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        left: 0;
                        right: 0;
                        top: 0;
                        bottom: 0;
                        display: block;
                        object-fit: cover;
                    }
                }

                .ctx-box {
                    padding: 5px;
                    background-color: #fff;

                    .title {
                        font-size: 14px;
                        line-height: 22px;
                        height: 22px;
                        overflow: hidden;
                    }
                }
            }
        }
    }
}

.live-list-view{
    display: block;

    .live-list {
        display: block;
        padding: 0 15px;

        li {
            display: flex;
            padding: 8px 0;

            .pic-box {
                width: 120px;
                height: 90px;
                margin-right: 10px;

                img {
                    width: 100%;
                    height: 100%;
                    display: block;
                    object-fit: cover;
                    border-radius: 5px;
                }
            }

            .ctx-box {
                flex: 1;

                .title {
                    font-size: 16px;
                    color: #000;
                    font-weight: 500;
                    line-height: 1.2;
                }

                p {
                    font-size: 14px;
                    color: #666;
                    margin-top: 5px;
                }
            }
        }
    }
}

.live-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f0f0f0;

    .live-meta {
        display: block;

        &-content {
            position: relative;
            padding-top: 65%;
        }

        .dplayer {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            display: block;
            z-index: 1;
        }

        .uid {
            position: absolute;
            z-index: 99999;
            font-size: 16px;
            font-weight: 500;
            color: #f8f8f8;
            line-height: 1;
            opacity: 0.75;
            left: 50%;
            top: 50%;
        }

        .open-vip {
            background: radial-gradient(circle, #5A5B66, #2C2C38);
            color: #fff;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 5;

            .title {
                font-size: 18px;
                display: block;
            }

            .btn-area {
                text-align: center;

                .btn {
                    background: #FFB600;
                    color: #fff;
                    font-size: 16px;
                    font-weight: 600;
                    text-align: center;
                    width: 190px;
                    line-height: 40px;
                    height: 40px;
                    display: inline-block;
                    border-radius: 20px;
                    cursor: pointer;
                }
            }
        }

        .play-btn{
            width: 60px;
            height: 60px;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -30px;
            margin-left: -30px;
            z-index: 10;
            color: #fff;
            text-align: center;

            .iconfont{
                font-size: 60px;
                line-height: 1;
            }
        }
    }

    .live-tabs {
        display: flex;
        background-color: #fff;

        .tab-item {
            padding: 15px 0;
            box-sizing: border-box;
            font-size: 16px;
            flex: 1;
            text-align: center;
            line-height: 1;
            display: block;
        }

        .active {
            color: #1C8EF5;
            border-bottom: 2px #1C8EF5 solid;
        }

        .subscribe {
            background-color: #1C8EF5;
            color: #fff;
            padding: 15px 20px;
            font-size: 16px;
            text-align: center;
            line-height: 1;
            display: block;
        }
    }

    .live-content {
        flex: 1;
        background-color: #f0f0f0;
        height: 100%;

        .inner {
            display: block;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .chat-room {
            display: block;
            padding: 15px;
            position: relative;

            .chat-message {
                display: block;
                margin-bottom: 10px;

                .time {
                    font-size: 12px;
                    color: #666;
                    text-align: center;
                    padding: 5px 0;
                }

                .wellcome-msg{
                    font-size: 12px;
                    color: #666;
                    text-align: center;
                    padding: 0;
                }

                .chat-flex {
                    display: flex;

                    .avatar {
                        width: 30px;
                        height: 30px;
                        margin-right: 10px;
                        border-radius: 15px;
                    }

                    .username {
                        font-size: 16px;
                        margin-bottom: 10px;
                        display: block;
                    }

                    .message {
                        background-color: #fff;
                        padding: 8px;
                        border-radius: 0 10px 10px 10px;
                        font-size: 14px;
                        line-height: 1.2;
                        display: inline-block;
                    }
                }
            }
        }

        .content {
            padding: 15px;
            display: block;
            text-align: justify;

            img {
                max-width: 100%;
                height: auto;
            }

            * {
                max-width: 100%;
            }
        }
    }

    .comment {
        position: relative;
        display: block;
        border-radius: 5px;
        font-size: 16px;
        color: #777;
        height: 38px;
        line-height: 38px;
        flex: 1;
        padding: 0 10px;

        &::before {
            position: absolute;
            left: 0;
            top: 0;
            width: 200%;
            height: 200%;
            display: block;
            z-index: 10;
            border: 1px #CCCCCC solid;
            content: " ";
            transform: scale(0.5);
            transform-origin: left top;
            border-radius: 10px;
        }
    }
}

.dialog-qrcode {
    padding: 15px;
    text-align: center;

    img {
        width: 210px;
        height: 210px;
        display: inline-block;
    }

    p {
        text-align: center;
        font-size: 14px;
        display: block;
    }
}

.tabbar{
    height: 50px;
    position: relative;

    .bar{
        position: fixed;
        z-index: 200;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 50px;
        background-color: #fff;

        &-inner{
            padding: 5px;
        }
    }
}

.live-section-title {
    padding: 15px;
    font-size: 22px;
    color: #000;
    font-weight: 600;
}

.live-noaccess{
    padding: 15px;
    text-align: center;
    display: block;
    color: #666;
    font-size: 16px;
}
